package g11.model;

import java.io.Serializable;
import java.sql.Date;
import java.util.Set;

public class Patient extends User implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5074132216510493311L;
	private String address;
	private String phone;
	private Date lastVisitTime;
	private String ohip;
	private String sin;
	private String currentHealth;
	private Set<PatientAssignment> patientAssignmentSet;

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Date getLastVisitTime() {
		return lastVisitTime;
	}

	public void setLastVisitTime(Date lastVisitTime) {
		this.lastVisitTime = lastVisitTime;
	}

	public String getOhip() {
		return ohip;
	}

	public void setOhip(String ohip) {
		this.ohip = ohip;
	}

	public String getSin() {
		return sin;
	}

	public void setSin(String sin) {
		this.sin = sin;
	}

	public String getCurrentHealth() {
		return currentHealth;
	}

	public void setCurrentHealth(String currentHealth) {
		this.currentHealth = currentHealth;
	}

	public Set<PatientAssignment> getPatientAssignmentSet() {
		return patientAssignmentSet;
	}

	public void setPatientAssignmentSet(
			Set<PatientAssignment> patientAssignmentSet) {
		this.patientAssignmentSet = patientAssignmentSet;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public boolean equals(Object obj) {
		/*
		 * add by Fern
		 */
		Patient other = (Patient) obj;
		if (this.getId() == other.getId()) {
			return true;
		} else

			return false;
	}
	//
	// @Override
	// public String toString() {
	// return "Patient [address=" + address + ", phone=" + phone
	// + ", lastVisitTime=" + lastVisitTime + ", ohip=" + ohip
	// + ", sin=" + sin + ", currentHealth=" + currentHealth
	// + ", patientAssignmentSet=" + patientAssignmentSet + "]";
	// }

}
